<header>
    <div class="banner ">
        <div class="w-all">
            <ul class="fl">
                {if $islogin}
                <li>您好，<a href="javascript:void(0)">{$userinfo.name}</a></li>
                <li><a href="{link=user.mark.index}">我的书架</a></li>
                <li><a href="{link='user.auth.logout'}">退出登陆</a></li>
                {else}
                <li><a href="{link=user.auth.login}">登陆账号</a></li>
                <li><a href="{link=user.auth.register}">免费注册</a></li>
                {/if}
            </ul>
            <ul class="fr">
                <li><i class="pticon pticon-mobile pticon-lg"></i><a href="{$kx.config.mobileurl}" target="_blank" title="{$kx.config.sitename}手机版">手机版</a></li>
                <li><i class="pticon pticon-home pticon-lg"></i><a href="javascript:$.pt.setHome('{$kx.config.siteurl}');">设为首页</a></li>
                <li><i class="pticon pticon-star pticon-lg"></i><a href="javascript:$.pt.addFav();">加入收藏</a></li>
                <li><i class="pticon pticon-desktop"></i><a href="#" target="_blank">桌面快捷</a></li>
            </ul>
        </div>
    </div>
    <div class="clear"></div>
    <div class="logosearch w-all ">
        <div class="logo fl"><a href="{$kx.config.siteurl}" title="{$kx.config.sitename}"><img src="{$kx.config.resurl}/template/kxwebno2/image/logo.png" alt="{$kx.config.sitename}" /></a></div>
        <form class="searchbox fl" action="{link=novel.search.result}">
            <div class="dropmenu">
                <span class="tri"></span>
                <ul class="dropmenu-item">
                    <li data-type="novelname">书名</li>
<!--                    <li data-type="author">作者</li>-->
                </ul>
            </div>
<!--            <input name="searchtype" type="hidden" value="novelname"/>-->
            <label class="fl"><input type="text" name="searchkey" id="" value="{$kx.get.searchkey}" class="text"/></label>
            <input type="submit" value="搜索" class="searchbtn"/>
        </form>
        <div class="operate fl">
            {if $islogin}
            <a class="operate-item" href="{link=user.auth.logout}">
                <i class="pticon pticon-sign-out"></i>
                <b>退出登陆</b>
            </a>
<!--            <a class="operate-item" href="#">-->
<!--                <i class="pticon pticon-cog"></i>-->
<!--                <b>阅读习惯</b>-->
<!--            </a>-->
            <a class="operate-item" href="{link=user.mark.index}">
                <i class="pticon pticon-book"></i>
                <b>我的书架</b>
                {if $userinfo.unreadnum}<s class="badge">{$userinfo.unreadnum}</s>{/if}
            </a>
            <a class="operate-item" href="{link=user.index.index}">
                <i class="pticon pticon-user"></i>
                <b>用户中心</b>
            </a>
            {else}
            <a class="operate-item" title="看过的书" href="{link=user.history.index}">
                <i class="pticon pticon-history"></i>
                <b>看过的书</b>
            </a>
<!--            <a class="operate-item" title="QQ登陆" href="{link=user.auth.thirdlogin type=qq}">-->
<!--                <i class="pticon pticon-qq"></i>-->
<!--                <b>QQ登陆</b>-->
<!--            </a>-->
<!--            <a class="operate-item" title="微博登陆" href="{link=user.auth.thirdlogin type=weibo}">-->
<!--                <i class="pticon pticon-weibo"></i>-->
<!--                <b>微博登陆</b>-->
<!--            </a>-->
            <a class="operate-item" title="用户登陆" href="{link=user.auth.login}">
                <i class="pticon pticon-user"></i>
                <b>用户登陆</b>
            </a>
            {/if}
        </div>
    </div>
    <nav class="w-all">
        <ul class="clearfix">
            <li><a title="首页" href="{link=index.index}"{if $pagesign=='index'} class="pt-active"{/if}>首页</a></li>
            <li><a title="排行" href="{link=novel.rank.index}"{if $pagesign=='rank'} class="pt-active"{/if}>排行</a></li>
            <li><a title="分类" href="{link=novel.category.index}"{if $pagesign=='category'} class="pt-active"{/if}>分类</a></li>
            <li><a title="完本" href="{link=novel.over.index}"{if $pagesign=='over'} class="pt-active"{/if}>完本</a></li>
            <li class="fr"><a title="用户中心" href="{link=user.index.index}" class="{if $pagesign=='user'}  pt-active{/if}">用户中心</a></li>
        </ul>
    </nav>
</header>